import Mock from 'mockjs';

export default [
  {
    url: '/api/users',
    method: 'get',
    response: () => {
      return {
        code: 200,
        data: {
          'list|10': [
            {
              'id|+1': 1,
              name: '@cname',
              email: '@email',
              phone: '@phone',
              pwd: '123456',
              'age|18-60': 1,
              description: '@csentence(3, 5)',
              role: '@pick(["admin", "user", "guest"])',
              address: {
                street: '@csentence(3, 5)',
                city: '@city',
                country: '@county',
              },
            },
          ],
        },
      };
    },
  },
];
